﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using Wexflow.Core.Service.Client;
using Wexflow.Core.Service.Contracts;

namespace Wexflow.Clients.Manager
{
    public class WexflowCoordinator
    {
        WexflowServiceClient _wexflowServiceClient;
        WorkflowInfo[] _workflows;
        Dictionary<int, WorkflowInfo> _workflowsPerId;
        bool _windowsServiceWasStopped;
        Timer _timer;
        Exception _exception;
        public WexflowCoordinator(string uri)
        {
            _wexflowServiceClient = new WexflowServiceClient(uri);
            _workflows = _wexflowServiceClient.GetWorkflows();
        }

    }
}
